//
//  ConfirmSendMonsyAlertController.m
//  FactorySale
//
//  Created by 主事丫环HU on 2020/8/24.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "ConfirmSendMonsyAlertController.h"

@interface ConfirmSendMonsyAlertController ()
@property (weak, nonatomic) IBOutlet UIView *tipsView;

@end

@implementation ConfirmSendMonsyAlertController
- (instancetype)init {
    if (self = [super initWithNibName:nil bundle:nil]) {
        self.modalPresentationStyle = UIModalPresentationCustom;
        self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.5];
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self animationAlert:self.tipsView];
}
- (IBAction)cancelButtonClick:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)confirmButtonClick:(UIButton *)sender {
    if (self.confirmButtonClick) {
        self.confirmButtonClick();
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end
